// 重载计算绝对值

#include <iostream>
#include <math.h>
using namespace std;

double Abs(double f);
int Abs(int i);
long Abs(long l);

int main() {
    double f = -7.345f;
    int i = -3;
    long l = -44000L;

    cout << "正数值分别是: "
        << Abs(f) << ", "
        << Abs(i) << ", "
        << Abs(l) << "\n";
}

double Abs(double f) {
    return abs(f);
}

int Abs(int i) {
    return abs(i);
}

long Abs(long l) {
    return labs(l);
}